package cn.net.autocode.platform.file.viewTemplate;

public class OtherView {

    public static final String template = """
              <!DOCTYPE html>
                <html lang="en" xmlns:th="http://www.thymeleaf.org">
                	<head>
                		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                		<meta http-equiv="X-UA-Compatible" content="IE=edge">
                		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
                		<meta name="renderer" content="webkit">
                		<title>{fileName}</title>
                		<script src="/links/polyfill.min.js"></script>
                        <script src="/links/axios/axios.min.js"></script>
                        <script src="/links/vue/vue.min.js"></script>
                        <script src="/links/element-ui/index.js"></script>
                        <link href="/links/element-ui/theme/index.css" rel="stylesheet"/>
                        <script src="/js/HttpApi.js"></script>
                		<style>
                			html,body{
                				width: 100%;
                				height: 100%;
                				margin: 0px;
                				padding: 0px;
                			}
                		</style>
                		</head>
                		<body>
                		    <div style="padding:40px 40px 0;"><label style="color:blue;">{fileName}</label> 不支持在线预览</div><br />
                			<div style="padding:0px 40px;">目前只支持PDF、Word、Excel、CSV、图片、TXT格式的文件在线预览</div><br />
                			<div style="padding:0 40px;"><button type="button" onclick="HttpApi.downLoadFile('{fileId}')">点击下载</button></div>
                		</body>
                </html>
            """;
}
